package com.jxbeidou.generate.config;

import com.jxbeidou.generate.core.convert.StringToModeConvert;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @program: jxbeidou-basic
 * @ClassName: GenerateWebConfiguration
 * @description:
 * @author: 杜晓祥
 * @create: 2024-05-08 14:43
 * 版权所有：交信北斗(北京)信息科技有些公司
 */
@Configuration
@Slf4j
public class GenerateWebConfiguration implements WebMvcConfigurer {

    @Override
    public void addFormatters(FormatterRegistry registry) {
        log.debug("字符串转模式枚举配置");
        registry.addConverter(new StringToModeConvert());
    }


}
